/*
 * $Id$
 */

package py.firefly;

import com.google.common.base.Optional;

import py.firefly.request.Request;
import py.firefly.request.Response;

import py.firefly.resolution.Resolution;

/**
 *
 * @author py
 */
public abstract class After extends Interceptor {
    
    /**
     * 
     * @param req
     * @param resp
     * @return 
     */
    @Override
    public final Resolution handle(final Request req, final Response resp) {
        final Resolution r1 = _handler.handle(req, resp), r2 = after();
        return r1 != null ? r1 : r2;
    }

    /**
     * 
     */
    public abstract Resolution after();
}
